version 0.2.2

fixing bugs and logging