Added error messages. fixed bugs in primitive parser. progress on RDP.