refactoring

1 rewrite some methods to achieve single return instead of mutipul
return
2) local variables are changed to final
3) delete explicit this usage
4) added copyright
5) delete white space after comma
6) lines contain more than 100 characters are break into shorter lines
7) delete unnessary super();
8) delete unused imports, duplicate imports