accept standard input

Closes #2