Modified the menu function to accept a parameter for the initial selection, and patched up the inventory menu.