added basic command line options, need to figure out why subshell execution causes UnicodeEncodeError