Minor changes

Fixed strange bug on other server (can't reference element of returned
array).
Re-enabled emails.
Turned on debugging.