Made following changes in this commit
1.) Swapped Erode and Dilate function.
2.) Proper Formatting
3.) Corrected the documentation.