added pmm_check_page, updated some comments to doxygen-style