file serilization add indexsaver class now functions properly use it to save or load the index