Moved state array fns into adapter class. Renamed body.m to body.mass. Added broadcasting of masses to bodies in system.