fixed minor bug and minor documentation alteration