Merge pull request #4 from gynsolomon/master

several commits
[yanan] primarily add mixpanel functions