Some PHP E~Notices fixed and some corrections for compliance to Wordpress coding standards