serializing action numbers for rules and events
added StringBuilder add() method overloading