added commandline switch for external templates
adding bash fn to readme