refactoring of file names to lowercase
some refactoring to improve clarity
refactoring calculate page retrievability
merge changes in page ret calc