Implement a 'Pkg' class type along with methods for getting pkg attributes
Implement the low-level pkglib functions for getting pkg attributes
Use more meaningful names for the functions and methods