made ama object
integrated an AMA model
several small bugfixes
Merge branch 'amaobject' integrates AMA object
merged and deleted amaobject branch