more auto-packing algorithm, refactoring, start on filling existing packages