updates to documentation; base case fixes