Added official logging, fixed small errors.