improved logging, added logging module
0.3.1