Added automatic centering
Merge pull request #2 from BrunoI/patch-1

Added automatic centering. TODO: Check maxDet()