Fixed few bugs in fragment parsing

* support comments
* better handling for unsupported anchors