Page table manipulation functions update

All functions in pgtbl.h tested and worked.