Adding RPN to command_stream functionality, writing functions to manipulate the RPN token list