Added comments to main file.  Added test script to test the code.