FIX: Misc fixes.
ENH: Added MATLAB port.