improve tags in orgmode notes and remove extra space in bodies.
make modeline insertion more robust