add api description for fhash and optimize few libs