Setting behaviour patterns

Now is the moment I need to set an example for my daughter, encourage her to learn positive behaviour patterns. I don't want her to look back on childhood and remember arguments caused by my lies. I also don't want her to become like me. That is a big worry for me. If that happens I could never forgive myself. Over the last few days things have been about the best they have been between my wife and I since the argument. Not back to normal yet, but still having good times at least, now I have to ensure that it continues. Advice on next steps would be great, on how I can progress. I want to continue with trying to stop this pattern, so if anyone has o beaten this and could offer me some guidance it would truly be appreciated.