Fixed a few bugs and improved recommendation.