minor formating fixes and removed file delete code as it wasn't working