added swap to rms.cs, improved rms header