Improved docstrings
Fixed some todos
Starting unit test rewrite
Simplified get_nodes_from_xpath