Added stdin consumption as optional input
Added source evaluation for stdin and file inputs
Added trap for unexpected errors during evaluation