* Validator and init scripts fixed
* Code refactoring in trainer.elements