Cleaned up the scripts and made some minor changes to the index