Google logging added
Replaced all fprintfs with glogs