added add method
fixed crashes when leaving activity e. g. through home button
added isonground function
added touch detection