Add $uriPath and $templatePath these two variables make library more fle...

Add $uriPath and $templatePath these two variables make library more flexable.