update for new _edit() syntax
new function: safe_email()
new function: newline()
minor changes