make email alert optional
zero-padding and formatting
format pnl_id throughout app
fix maxlen issue