Small fixes
Add in utilities file
Fix matrix data packaging bug. Fix indentation in utilities.