SAMAPI Library Added

Demo version of SAM based calculations, implemented as a library with a
Console Application for output testing.