implement some function in pmap.c
add some comments to pmap.h
purely hand-written.
add my codeblocks project file.