Additional error checking and documentation.

Implementation of topfilter options