-Changed min and max distance functionalities, -rebuilt app