Directly pull in Portage functions

Now necessary, since kernel-gen no longer uses them.
Improve documentation
Improve documentation