Reformatted README files.
Some cleanup for memleak and automated test.