Made clean up changes to xi, modified besselfin for testing