fix license headers
format the xmls (again)
fixed obvious lint errors
fixes to get it to build
Merge pull request #28 from corsc/cleanup

Please review this and ask if don't know what I made these changes