Improved mdedit