added acceleration, cleanup lots of old code from non object-based engine