updated version to 0.9.2

added some bugfixes and cleaned the code