changes to twnode class and rough outline for trashproblem class.