Changes paragraph formatting

o restore the current position when formatting a paragraph
Some small changes on movement mappings