Created a bootstrap function that returns a string of weights
minor modifications