Add title-plain for notes; small refactor of note title generation