When you reinstall your operating system, OS X will ask if you want to restore from a Time Machine backup. just select your TM backup drive and it will install the OS fresh and then restore your data. As long as you haven't setup any excluded folders, it will copy all of your data in all the places except system folders.