[Minor] extended Locator to get the path elements

Further added JavaDoc and removed exceptions when formatting about
locator length. This is now checked when instantiating using the builder