add/clean comments +docs
x use a +log library
add unit tests +test
