attribute stuff added; featurecount simplified. unique_ptr of features to shared_ptr