Cleaned up code.

Added README.