Make the document set the size when asked

Also remove more printfs