code cleanup, first swipe at docs and version bump