Feature/compiler complete refactor

Cleaner code and now parsing the compiler response as XML and extracting the new k attribute.
I think for will be more readable and less error-prone.