Added license and author info to all files
Cleaned up some code using PMD
Added readme file