Setting up the libarary:
1. copy libBAG folder to some place easily accessable
2. change the "DSTWOSDK" line of the makefile in libBAG/libsrc folder to the root path of where the DS Two sdk files are (the dstwo libsrc, lib and include folders)
3. open the libsrc folder (for libBAG) in the terminal and type make to compile the library.
4. ensure that libbag.a exists in libBAG/lib folder, if not, you may need to copy it from the libsrc folder 


Setting up the template:
1. change the "DSTWOSDK" line of the template makefile to the root path of where the DS Two sdk files are (the dstwo libsrc, lib and include folders)
2. change the "LIBBAG" line of the template makefile to x/libBAG/ with x being the correct path to the libBAG folder

Once the previous steps are completed, open template folder in terminal and type make to compile to. If everything is configured correctly, you should have a .plg file :D
To read the manual, open the html folder and run the index.html file in your internet browser.

Using the manual:
In /Manual/html/ open index.html in your browser, then click "Modules" in the left side bar.