Cleaned up code and renamed index file.