fixing omission of first coordinate
fixing bracketing bug
adding example to visualise changes
removing superfluous lines
adding enhahcement option