added code quality stuff

added checkstyle
code formatting
license headers