[feat] add possibility to specify instrument properties in XML
[important] change coding style to coform with PEP8

This also effects some functions exposed directly to the user.