added multiline commnts to above definitions
    -also took out a print statement inside the register function