moved MypetEntity interface and event classes to api package
fixed exp loss