Moved log function to the separate module

Refactor
Updated README