Cleaned up the source code, and updated the README file.