Documentation

 - Setting the license to MIT
 - Writing up a little README file
 - Minor refactoring and documenting in main.go