refactored test code, added code for figure and data generation
added bgs model example table, added some example figures