BuildExcerpts implementation.

Hello, I tried to implement BuildExcerpts according to PHP-implementation. Tested it somehow. I seems to work.