Adds comments to registration controller and removes unused variables