checkbounds function fixed
center coords tweaked
center coords tweaked
documentation added