Fixed parsing bug with consume_while not actually consuming
Added basic error reporting to the parser