Some code cleanup, adding more docs, and bumping version number.