[Closes #160] Rules config as maps

#162 written to fix that