Add error checking when calling _resize_fit and method comments