Add more configuration options to PHP file, update README and test.php.