Several improvements
Merge branch 'master' of https://github.com/ljmanso/AGM