Latest bug fixes and doc changes