Better app structure and initial test for movement detection