initial commit of Duke matlab code