Parsing Functions and cmd_stream struct change

Its a rough of what I saw, and this is perhaps the best implementation
without using too many parameters for the parsing functions, but adding
more variables in the command_stream struct. I left them in comments so
that we can revise and better them later tomorrow.