add email to readme, and add var keywords to functions