Split eventric code from index into seperate file, Move inmemory store to folder