removed cli.php, added document url upload method, added examples, modified tests