Remove commented out code
Fix memory issues in hexToVec
update matlab althist