Finished AnalyzeProfile (version 1) +minor edits