Added some more error messages to border editing to inform user if segment has less than two points or when editing, if the points are not near any borders.