fixes reference errors; adds a new method .command to run a command with options; #20