Added to README.txt and added comments in code.