ed.md: reorganize, put API summary before explanation