added write puw.c & puw.p, corrected typos in notes