Cleanup & Use THashMap, not HashMap

Signed-off-by: DziNeIT <dzineit@live.co.uk>