updated for latest php, and mysqli library
updated readme,md