Feature/compiler complete refactor

Cleaner code and now parsing the compiler response as XML and extracting the new k attribute.
Do mean it should be rewritten in a more readable manner?