various updates to the mathematica code