Code cleanup, readme added.