Magnetization Dynamics in Magnetic Nanoscale Devices