Added code to generate recommendations for all videos. Also some clean up.