Update order of primitives in primitives environment.
Better error handling and reporting in the lexer. Move Pos to the Error module.