add rules to manipulator
move config files to right folder
add comments to the listener
fix code style issues