Adding descriptor parsing.

This commit is required to detect if a layer is a text layer. The structure of
the text is not actually parsed.
Merge pull request #2 from oliverzheng/master

Adding descriptor parsing