Updated version.
Added basic documentation through Sphinx. Added minor doctesting.