The EZBuilder procs provide directly usable functionality for initializing the package, starting a run and ending a run. Use of the EZBuilder API is significantly simpler that direct use of the API layer.
See the 3evb manpage section for EZBuilder information as well.