Add comments
Use local location detection function in the initialization
Add function to overwrite local Location