Tidied up Matlab files