Removed a lot of unused code. Formatted and fix import on all classes.