paper edits.
fixed
adaptive p algorithm.