Added support for purchasing items, adding new users, cleaned up code, and bug fixes