Print error on stderr
Fixed few problems
Moved stuff to separate repos