moar cleanup and comments
Merge branch 'metamodelingOnFly' of https://github.com/qreal/qreal into metamodelingOnFly