Fixed minor errors to get the app to run.