Feature/compiler complete refactor

Cleaner code and now parsing the compiler response as XML and extracting the new k attribute.
If I was owner of this code I will rewrite it. My reason -  I many times faced with issues when in while loop 'continue' was added and loop index will not be incremented.