add getForegroundApplicationName method
small refactoring to make it more readable
add requesting of location per message
weird merge