fixed issue #1 related to case weights
updated to add part method