Added documentation

Fixes #4 

Is it better to have a utils.go file like this or maybe a utils directory and a subpackage?