fix for particles not ending in a non continous system; added matrix inverse; added text alignment; fix for remember tail log