Magnetic Resonance Detection Using Nitrogen-Vacancy Centers In Diamond