updated a test.cpp file to test the library, and also show the user a way to use the library.