modified the namespacing and made phpunit tests for all rules. still need to remaining classes and their unit tests