Cleaned up code for compilation

Need functions for sellers