Add some docs into the comments of bakerlib.php