bug fixes; updates to docs