removed appcopmat dependency, added comments