add check_in function and make to_s on Library more readable.