Adds a fetch command and the generate now generates a basic tex document