convert input and catalog index to use LoadFileOnce

Memory mapped file not used now :(
add the entities structure

just a vector, since we want to process sequentially.