MHAPI code review update + createMedia bug fix