Better encapsulation: public functions starts with pfq_, other declared static.
Removed unused function
Minor changes...