fixed odd argument bug, and added print fxn to parser for easier testing