Some code moved to utils.py
Added some documentation to readme.