added support from reading input expressions from stdin and argv