Added code for Tpfahp, Twfahp and Demo to parse input args. Twfahp does not work as yet!