Added some tests for coordinate class, changed the comments so that they are more relevant to the method