Added is_empty method to Path.
Documentation & refactoring.