updates to util.R to support more functionality
Merge branch 'master' of https://github.com/pbeshai/stats

Conflicts:
	util.R