hopefully optimised render load a little
added some styling
Added function to get the co-ordinates that a line would pass through