added documents and tidied