Tidying up with Astyle, spelling fixes

Pretty much what it says on the title.  Unless anyone has any
suggestions for changes, I think this is ready.  I tested everything and
it works.  Thanks again to everybody who helped me with this!