Fixed warnings, removed uneeded jars, formatted codebase