Added pipeline docs and tidied formatting.