added puts statements for debugging
deleted puts raw