fixes typos and incorporates feedback