Attempt fix on error return type

Changed os.Error to error, and imported "errors" just in case.