Do you know where I can find some code examples to look at and test?
BoD usually are some of the biggest current consumers.
all pins to output high;
disable watch dog;
use internal rc oscillator at the lowest frequency;
disable as much as you can;
go into power saving modes as deep as you can;
...