Moved index functions to h file in celllist