fix some input errors

now only take *one* char for operator (ignore all chars after it) & we
flush the input buffer + don't use scanf so everything else on the line
is ignored. similar with getting integers, though we still do use scanf.
'refactor' README.md; license other work!

CC-BY-SA v4.0. even picked up a plaintext version! :D