Fixed some declaration bugs
New record file "nMask" to provide edit masks for the metrics