Read from STDIN if data is being piped in

Fixes #130
Merge pull request #135 from mojodna/stdin

Read from STDIN if data is being piped in