- changed Main method to support different unit test main methods
- added TIDhash struct and comparision operator