Fix formatting and debug, properly implement towny copy