Added debugging info
Cleaned up fB function - much more accurate now
Made the close function more robust
Sig figs in output