Fixed a bug that allowed the passing of matrices.
Second mask is now optional. Tophats have become more flexible with respect to masks.
Improvements on the documentation.
Added the morphological selfdual tophat.