add docs
fix behaviour of parse auth code button and fix test for it