Merge pull request #35 from karkumar/master

Fixes #34
added AGM related functionality