Refactored code for use by web app, implemented item-based recommendation