put conditions in AGM_Attach in functions: see #452, basic formating
Merge branch 'master' of https://github.com/KoffeinFlummi/AGM