added mex
added debug tools to expcone