Refactored HAWThread class
Moved HAWThread to lib/util