Code cleanup. Added readme.