Major Update

Added mailscript functionality