pmod_pt added for parameterized module support

Better and cleaner version of pull #11