More bug fixes and internal functions implemented for loading default packages.