code cleanup. added a README file.
more code cleanup
updated README