cleanup
updated srcs
added linebuffer3d getNumSegments