read from stdin if available
updated readme for stdin