Added documentation and optimized util
Merge pull request #4 from satvikc/master

Add documentation and cleanup utils.go