moved functions to own file, added ANDROID_HOME