Changed the code to be conform with Java7
Removed unnecessary codes to make the codebase smaller and easier to maintain
Fixed common Java problems like missing generics or using Vector