Simple thread use for logging
Refactoring problem constructor
More logged info
Renamed parents to nodes
No need for swap here, just assignment