You asked:

what does twig mean

'Twig' has several different uses: as a verb, 1. branch out in a twiglike manner; 2. understand, usually after some initial difficulty; and as a noun, 1. a small branch or division of a branch (especially a terminal division); usually applied to branches of the current or preceding year.