1. Refinements to mandelbrot app
1. Reworked how HRESULTs are tested for
1. Code style fixes