Got email and text notification working, added matlab functions