Minor cleanup in peer and piece code.