Updated comments, README file. Cleaned up code.