convert global function to instance prototype
Merge pull request #6 from adammcarth/package-builder

convert global function to instance prototype