Renaming get_compiler to compiler()
Fixing misnamed and shuffling some code for better logical flow