Adding bootstrapping implementation

General bug fixes, implementing bootstrapping method to calculate error