Fix a lot. Separate enums into their own files. Fix references across project.