Scraping through the documentation I managed to make so that \chapter generates a trailing 0 before the chapter number if the chapter number is smaller than 10.
I would like to do the same for table of contents but I couldn't find any help online. Right now I just see
1 First Chapter 5
2 Second Chapter 23
...
10 Tenth Chapter 130
But I want this:
01 First Chapter 5
02 Second Chapter 23
...
10 Tenth Chapter 130
Does anybody have a clue? Thanks in advance!

\thechapter, but instead fiddled around with\@makechapterhead, correct?\renewcommand{\thechapter}{\ifnum\value{chapter}<10 0\fi\arabic{chapter}}should suffice. – Werner Sep 08 '16 at 06:53\thechapterone gets the leading zero also in every cross-reference. – egreg Sep 08 '16 at 08:35