Refactor: Rename ruleptrs to rules
Refactor: Declare constant to be const
Refactor: Rename rules2 to rule_cmds
Refactor: Replace array with std::vector