added analytics and fixed more retina bugs