refactored inertia and finished dart wrapper