Add code formatting (via jar file) and fix some math stuff