Cleanup nowarnings

Gets rid of all the compiler warnings from gcc, and the fixable documentation warning.