GrahamA: add license headers, remove main method used as a scratchpad.