Various small cleanups

A similar set of cleanups to the ones in specfem3d, except I didn't fix indents on everything as I don't have time for that.