Documents show how ISIS functions as a government