Reorganize into boxloader, box, and converter classes