Fixed undo for lines. Fixed Pasting error. Made pasting faster.