code style / whitespace cleanup
Truncate dashtype string to match size of stored pattern array.
Add comments.
'set table $datablock' redirects table output to a named data block