Cleanup and comments

Code cleaned up for reading clarity. README added to repo.