Added genmet, genht, and some fixes to hltstudy