Add MIT license headers

This pull request adds an explicit license to the code so it may be reused.

Please consider merging this pull request so the library may be reused and contributed to.