Optimize rule checking

Add a length attribute to queues
Update persistence rule macro
Update byte code files
sendToSim also calls parser
Add Makefile for parser