Improved the documentation and cleaned up some deprecated code.