Repositioned position of start and end nodes, added label flip functionality