Fixed bug in computing totals for motors

Almost done!

I will wait for forums comments in order to evaluate to enrich my analysis