add new gatingTemplate class and method
merge from HVTN080 branch
merge from HVTN080 branch
add polyfunctional gate parser