implemented hashmap resize and fixed various bugs, added debug logging
facility
more warnings, and corresponding fixes