Added a couple of comments. Changed latlng logic.