merge prototypes and hashcatModes into a list of nestedtuples

Use ints for hashcat modes.

Use str.format() in writeResult.