added reader for stdin or file

Signed-off-by: buckie <wjmartino@gmail.com>