Cleaned up module structure; added automatic linear object segmentation.