fix if structure, cleanup logger
Merge branch 'master' of github.com:heeres/objectsharer