Update analysis functions

AST_spatial now does more interesting monte carlo
Motility fixes a small bug