updated coments.
added tests for trim-snippet.
additional tests for snippet finder.