Add registration sent boolean and minor tweaks to comments in code