Added reconfiguration stability parameters. Code refactoring. Fixed energy collection statistics