Various potential bugfixes. Added gravity visualization arrow.