MainStat module imorovements. Bug on module.exports MainStat