add get external IP address function
move all file to the src directory
create gradle build script