Add matlab funcs
Remove commented out code
Fix memory issues in hexToVec
update matlab althist
dos2unix
Merge branch 'martin'