tidy limb darkening code
lookup works but find nearest seems wrong
added unit tests for find_nearest