Final gain estimation module

Summary
Final validated code uploaded to GitHub repository, and integrated into Commander2