renamed findPageByID to find_page_by_id and added docstrings