Cleaning up this repo, adding comments.