update copyright information
add __contains__ and __len__ methods