fixed bugs with selectHierarchical and added some pos functions to features.py