Added receipt output and fixed parsing errors