Corrected example. Cleaned up doc a bit.