Start of Harry's changes

Output only if -v flag, allow 16 patterns, delete fifo on exit, validate
pattern number, start of C output
Corrected flags