Fixed up chopBuffer

Added better detail to exception, and finished the method.

Has debug line.