New functionalities matlab file, includes works in progress