diff --git a/readme.md b/readme.md
index 9e3a2ce..3452503 100644
--- a/readme.md
+++ b/readme.md
@@ -13,16 +13,20 @@ Tested against BaseX 8.6.2
import module namespace t="expkg-zone58:image.thumbnailator";
fetch:binary("http://images.metmuseum.org/CRDImages/ep/original/DT46.jpg")
-=>t:scale(80,60)
+=>t:size(80,60)
```
### Tasks
This function takes an XML description of the operations to apply to generate the thumbnail.
-```xml
+```xquery
+import module namespace t="expkg-zone58:image.thumbnailator";
+declare variable $watermark:="C:\Users\andy\git\ex-thumbnailator\src\test\resources\icon.jpg";
+
+let $task:=
-
+
Some Text here
@@ -31,8 +35,11 @@ This function takes an XML description of the operations to apply to generate th
+
+return fetch:binary("http://images.metmuseum.org/CRDImages/ep/original/DT46.jpg")
+=>t:task($task)
```
-A schema is provided.
+A schema for this is [provided](./src/content/task.xsd)
## Installation
The library is packaged in the [EXpath](http://expath.org/spec/pkg) xar format with
diff --git a/src/main/content/thumbnailator.xqm b/src/main/content/thumbnailator.xqm
index 23bc1c8..073c8b0 100644
--- a/src/main/content/thumbnailator.xqm
+++ b/src/main/content/thumbnailator.xqm
@@ -34,7 +34,7 @@ as xs:base64Binary
: @result base64Binary for thumbnail
:)
declare function thumbnails:task($source as xs:base64Binary,
- $task as element(task))
+ $task as element(thumbnail))
as xs:base64Binary
{
Q{java:org.expkgzone58.image.Thumbs}task($source,$task)
diff --git a/src/main/expath-pkg.xml b/src/main/expath-pkg.xml
index 42fef54..2008990 100644
--- a/src/main/expath-pkg.xml
+++ b/src/main/expath-pkg.xml
@@ -1,5 +1,5 @@
+ abbrev="thumbnailator" version="4.1.5" spec="1.0">
An XQuery interface to thumbnailator the thumbnail generator library.