dump function added, function for key modifier check, indentation changed