Initial checkin of working code.
Adding MIT license to the top of files.