Fix syntax errors, setup for running properly as app