added matlab files originally used in development