Added License file, fixed naming conventions, remove unused code, applied checkStyle,pmd, findbugs...

... and configured sonar