minor changes

mobility function is now in a separate file