Book of job, why did god forgive him?

So I don't get it, if job did nothing but complain why did God forgive him in the end? My real question I guess is how is someone supposed to take in society?
9 answers 9