Added centerGrid(), getRealGridPoint(), minor improvements