Remove debug printfs
Fix warnings