added panzoom functions and example file