Buffer and PrintEvent classes added
plumbing for signal and print hooks
added scanner() print hook