Add support for reading from stdin
Fix goof in single digit pin number fixup code

Signed-off-by: Charles Steinkuehler <charles@steinkuehler.net>