Line endings and removed dusplicate code. Added ignore for log.