fixed sell function and fixed some print stuff.