Added license, readme, fixed event declaration.