0.4 update

tidied up the contributions from other users. Added new check for FRAUD
state in order data validation. Added a test facility for email.