Added authorize command. Added a few missed steps to existing commands. Other general cleanup.