adding election api doc and fixing some doc strs