General code cleanup

- Format most files