First shot at package function, tested only with package(output='somename.box')