Fixes a few small bugs, adds a readme