Feature/get enum types

Features on this branch finished, please review.
Formatting still hasn't been fixed.