Bug fixes and comments

Additional bug fixes and comments to AA04_analysis and AA_cpsd_mscohere.