(fix) mainagent to mainAgent (syntax), (fix) channel as Parameter (syntax)