Added some comments
Changed logic in analyze method
Changed github link