Updated PHP Library to 3.1. Bug fixed JS version. Updated ReadMe