Fixed menu generator, less code, better functionality. Also added the sidebar menu template for the CI parser