made variable input more robust, provided demo for using PacerModel