The headers now fully compile. Also fixed a minor typo in error generation as well as constant generation.