createMenuStructure function logs clean up and comments addition.