Now using less pointers...
Added check if linesegment is empty.
Some variable renaming and code restyling.
Edgels are now displayed for debug reasons.