Utilize errors more extensively, move to glog