break up rule file and improve commandline output