generalizing bootjack function
Add notes, cleaned up functions.
Added notes [ci skip]