Update Register.scala

Updated comments