Added comments to main.cpp and location.cpp/hpp.