Added class support and updated documentation. Closes #6.