Added forPage function and fixed documenation