added code documentation for BASE, SampleLib, TPCLib and build system