Adding boundaries reference + debugging output
Fixed missing trail copy()
Removing trailing whitespace, commenting out debugging information for now