Improve error reporting
Implemented the actual packaging task