moving doc contents into own file