Corrected uppercase typo in function name.
Added Edge class to @return Document, to avoid warnings in IDE's code completion/analysis
Some minor corrections to tests
Minor Formatting
Correction of copy-paste error