started working on mgen-api documentation