Fixed a whole bunch of things

And added a readme.