Added document update function. Working on actually updating the screen.