Fixed docs and added an email mode