Reformat register_symbol()

also make consistent two empty lines between functions