Refactored code. Added priority sorting for menu items. Developers can now inject their own rendering engine on the fly.