Studies Of Electromagnetic Counterparts To Gravitational-Wave Sources And The Nonlinear Gravitational-Wave Memory Effect