update readme
tweak valid_library_class? method