Prior to version of the Swordfish compiler, you had to store your modules in either the root of you main program directory or within the "UserLibrary" space. Now you can store your module code in any-sub folder of your main program directory. For example:

 c:\my program\project\progMain.bas
 c:\my program\project\modules\spi\mySpi.bas
 c:\my program\project\modules\uart\myUART.bas

to access a module in your main program, just use a standard include. For example,

include "mySPI.bas"
include "myUART.bas"

and the compiler will find and link it automatically.