Added detection of text buffer modification, and resetting of this on file load/save/new.
Added selection statusbar item.