pmap.c completed and fixed getline() backspace bug