Fixed bufname issue

Sometimes bufname() returns empty, retry again after adding the file
extension .dotoo to the name.
Fixed headline last_lnum logic

The previous logic was brittle owing to the parsing flow, fixed that by
calculating the actual last_lnum based on the start lnum and number of
lines in serialize()
Bumped version, updated docs