Framework question

BlitzMax Forums/BlitzMax Programming/Framework question

The plot thickens.....

Ok, so I have a look at "Import" in the built-in help and it shows this example:
Rem
:Import specifies the external BlitzMax modules and source files used by the program.
End Rem

Framework BRL.GlMax2D

Import BRL.System

Graphics 640,480,32

While Not KeyHit(KEY_ESCAPE)
	Cls
	DrawText "Minimal 2D App!",0,0
	Flip
Wend

Instead of making it clearer, it is even muddier: None of these commands are located inside BRL.System or BRL.GLMax2D, so what is the purpose of Framework and/or Import? (i.e. Graphics/Flip are inside BRL.Graphics, While/Wend/Not are inside BRL.Blitz, KeyHit() is inside BRL.PolledInput, and Cls/DrawText are inside BRL.Max2D)

So what am I missing here from a "What does it actually do" point of view? Why does the example above compile, when none of the commands from it are included in the specified modules? I'm waiting for that 'Aha!' moment to hit me like it did when I first encountered types many years ago on Blitz Basic 2 on the Amiga.

Russell