Implemented read_command_stream, stack is printing backwards, newline problems