EMAX source code