Corrected return of getAllRules

Now returns correct id and name.
Merge pull request #172 from mukarev/development

Corrected return of getAllRules