Lots of fixes and some minor improvements.  Clearly I'm a very good programmer when I'm tired.  Cleaned up a little but still a lot of cleaning up and organizing to do, not to mention more testing.  I've made a test file but it's not done so I'll add it to a future commit. Okay I admit I just forgot to add it and I'm too tired/lazy to do a git commit -amend.
Lots of fixes and some minor improvements.  Clearly I'm a very good
programmer when I'm tired.  Cleaned up a little but still a lot of
cleaning up and organizing to do, not to mention more testing.  I've
made a test file but it's not done so I'll add it to a future commit.
Okay I admit I just forgot to add it and I'm too tired/lazy to do a git commit
-amend.

rswinkle/C_formatting