added documentation and examples for setting the resource path