Adds missing brackets around center of mass coordinates (thanks to Luc)
Removed useless double quotes (thanks to Olivier)
Removed useless variable (thanks to Olivier)
Fixed bad array allocation (thanks to Olivier)
Fixed compiler warning about uninitialised variable (thanks to Olivier)
Fixed compiler warning about uninitialised variable
Merge pull request #234 from fabienrohrer/master

Fixed misc minor issues