Restructure so that library interface functions map those of facter (kinda)