added main file for embedded app