fixing up console.logs and getting logs.md to compile right

Working on wrap function.