Added storage of key=value pairs

added dictionary to hold key=value pairs
removed printing out found pairs
added filter to remove trailing \n