Fixed manufacturing lot garbage after '\0'
Removed writing debug file