Cut index down to 239 lines

Still needs a bunch of work =/