add onthefly data to the madfile object & store data in mongodb
bugfixes & minor improvements