added saving number of inputs and input address. also added whether or not the user specified the return address.