Added readme.txt and more error checking.