Added documentation to analyze method