added inline docs
added a catch for incorrect postfix or infix expressions