added api files
renamed files according to new structure
re-wrote former header files to compilable cxx files and did some code cleanup
fixed spline image view representation, the iostream inside the segmentation procedures and updated build environment