Add README, clean up some code.