added syntax and example to docs