A complete treatise on electricity in theory and practice