Fixed BagOfParts layer, added example