added exports to application and mainMOD(to replace main.js).