added confirmation and approval emails and fixed some failing specs