adds class SmartNewLineCommand

fix issue when folded headline is last one  in file
fixes class SmartNewLineCommand

now it should work always (end of file, wrapped header, multi selection)
Merge pull request #5 from vovkkk/patch-4

adds class SmartNewLineCommand