Fixed incorrect call to a function
Moved PFAPI to it's own module pf::api