added index field
get partial pieces as a Collection instead of a Set
removed piece index parameter from various methods