Very basic document parsing now functional.

Need to try on a much more advanced syntax