read_swm function

Read a .SWM file