Improved the fucntion compare_outputs

by adding an option "ignore", which can ignore key words in "keys"