* Correctly handle machines which derived (subclasses) from other machines. * Some refactoring and a lot more comments. Contributes to CURA-2414 Quality changes profiles are created incorrectly