Improved RMS operator

This branch is to address #102, #103 and #104.