squash php notices about undefined variables.
also fix spacing.
in printModifyForm: get rid of multi-line strings, use sprintf() heavily.
all over: fix spacing.