fix references preceeded by punctuation. Closes #106