adding matlab interface, ready to test