Fixed generate-content bug.
Added more documentation.