Add README and some code style fixes