Finished API definition
Added readme and a test script
Fixed a bug with longer paths