traversal method for finding endpoints
updated readme