cleaned up charges controller a bit and added mixpanel analytics