removed printf function from main
small bugfixes of last update