Fix indentation in formatError and fix docs for findOrCreate. Use .get instead of direct access in findOrCreate