Initial success with pkgPath handeling

Further testing and code reduction needs to be done
Fixed bug with non exported func's