added basic email functionality and fixed store.py