Improving Coherence Of Superconducting Qubits And Resonators