adds several improvements on n-body methods in body.py