add documentation and start getPage function