42nd Commit

Got rid of most of the global variables.