Update EDM.php

Added more features