Debugging
Removed debugging code
Defined to_b method