Added documentation comments.

Use alternative branch of thrust to allow for OSX builds