fixed up code/documentation mismatches
documented new arguments (mostly to npksum)
removed hooks to call old routines