implemented Logger in pythonic style and docs were improved