Updated README and added more comments to the .c files.