cleaned ability code, renamed from attributes, added mod