fix makefiles
add octave support
vmcw: fix boundary cond
lib: phase + fermi functions