added bootstrap function to stats
changed __all__ to import bootstrap
conformed to PEP8, fixed a small bug, and added tests