added addUnaries function to matlab interface + minor fixes