Update 2

Separated getMagStrength into UI and function.  Provided documentation.