Split state into parameters and state. Also fixed so the obstacles disapear
not when the midpoint pases x=0 but the leftmost part.
Added README.md