Issues with missing or badly located #+end_src at the end of code section at
the very end of the buffer partly fixed.