Make the scanner respect the Simplex Extentions
Improved the tests
Added a basic fragment and document test
Added a more elaborate document test