added option to translate center of mass to origin
Merge pull request #1 from andyras/master

added option to translate center of mass to origin