More work on scilab wrapper, almost done