Changed to relative inclusion paths, removed some unused stuff, fixed Matlab/Octave compilation