Updated plugin for wordpress menus. Cleaned up the code and allowed myself to vary the type of menu depending on template.