Added validation if file exists, cleaned debug printlns