changed to markdown and updated with the ensureIndex