Now with a hyperlinked table of contents

I also had to modify

    \pgfplotsset{compat=newest}

and remove a flag since it stopped me from compiling.

You can change the settings, but for now everything is blue