Fixed the coordinate setting

and commented some stuff