Misc fixes
make hash table creation at beginning
Making network work for tworound