Add schemas code

just added the `+ "\n"` to the initial map? Also to do you want the trailing `\n`, otherwise `mkString("\n")?