Move methods off class to module, and rename to loadsw/dumpsw

Also translate to/from center- and corner-based coordinates.