fixes and megaAPI code
init of bot using mega api