Implemented final version of receipt function, with printing option and sends email copy to user.