#488 Added pagination to similarity/file. Several fixes