finish docGen prototype