Implement suppression of trailing punctuation on note styles
Fix document initialization bugs in trailing punctuation code