Added receipt function
Added file format fix