Treatment and coating of metals; machining