Add some documentation. Slightly refactor the way of providing coordinates.