C implementation to improve memory and cpu utilization. Forked off to further move the work off the main process. Still needs attribute rendition and packaging before merging to main branch.