The commission in the discharge of its duties may administer oaths and affirmations, take depositions, and issue subpoenas to compel the attendance of witnesses and the production of books, papers, correspondence, memoranda, and other records considered necessary for the investigation of candidates.