Added readme.txt; Added range parameter; Fixed some bugs