added stuff for better code quality

checkstyle
codestyle (eclipse formatting)
licenses
formatted code
added license headers
more to go (code is yellow :))
added checkstyle to config