Added WaitGroup
Added "errors" include and made "error" a class.
A better (but still wrong) way to format calls to function literals.