Replaced hard coded values, corrected spelling mistakes

Hard coded coordinates replaced by constants (enum).

A number of spelling mistakes corrected.