improved the original rem-calc and tidied documentation