Add mag-menu function doc and a readme