added control and backend files, handling program loop, events