A number of small changes

- Add author and maintainer to DESCRIPTION
- Change CC0 to MIT license (for software, you really do want a proper license, and MIT is as open as they come).
- Add documentation use roxygen2 comments
- Add Makefile to build the Rd files
- Small changes to clean up some code