Added gain utilisation to task-dyn-limits.cpp and  added some useful comments