main source code for Intel XDK