Added some base conversion code that I found and adapted.
Documentation change.