Created sample config file and moved it into current folder.
Added some comments, cleaned up code style.