Added comments, and refactored the MEL example