removes wrong line endings
removes unnecessary prints