Linting and cleaning up some of the source

In service of #9 , trying to clean up some of the C source