removed all the node types except for rule in main file and compressed both files in output