Added ToArrary() methods. Cleanup examples.