Merge pull request #4 from cpcloud/mrocklin-method-dispatch

Fix errors