v1.1.2 Corrected case statement and function logic. Added -nh option to hide header from output