Electromagnetic theory, a critical examination of fundamentals