'Application' class implemented
events code revamped