Recent improvements to the astra particle trackingcode