Added License file, remove unused code, applied checkStyle,pmd, findbugs and configued sonar