Refactoring

Refactoring in order to decouple representation from iqm file format.