Added error handler, add admob and google analytics