0.5hr tidy index and tweek compiler functions