fixed some typos, rearranged references