update hooks to auto-generate class and docs on commit