fixed a giant pile of linting errors and code formatting