Add App/Gains/Gains.cpp and related files