created zGetPOP and sample script

tada! let me know what I can do to make it consistent with the existing code - I'm a physicist, not a dev. 

![popzdee](https://cloud.githubusercontent.com/assets/1953328/3207221/d662d5b8-edd8-11e3-83cc-169f4231ec2d.png)