Minor code formating and Java temp file deletion