adding scripts i needed from matlab