Apps update

Changed my distance code and modded the makefile