Made prims first class. Improved error messages.