Moved all of sdtw-utils into the .h file