small corrections to documentation and return struct of viewPatchesInImage.m