Added final statements
CleanCoded Javax file writer
Added final statements