main: add main source code to run app