fix literature generator bug
reorganize structure