Add create_package with basic error handling.