Add doctrings and comments in response to reviewers
Add tests for ndimage fallback for 3D white_tophat & black_tophat