Major code cleanup

I think I’m going to break them up into folders/modules instead of the
current layout of all files in the same folder.