check header with a regex expression, if not valid exit 3
should be piped if needed, now fixed
mult redesigned, now uses power of 2, less stack calls (for 53, passes from 9 -> 4 calls)