merged Snapworld changes into swig-sw, renamed swig -> swig-r, added a number of short test programs