more documentation
diff --git a/doc/reference.rst b/doc/reference.rst
index a1a7d35..53dee63 100644
--- a/doc/reference.rst
+++ b/doc/reference.rst
@@ -1,6 +1,9 @@
Reference
==================================================
+This is the class and function reference. For more usage information
+see the :ref:`usage` page.
+
Functions
--------------------------------------------------
@@ -14,10 +17,6 @@
.. autofunction:: rsa.newkeys(keysize)
-.. autofunction:: rsa.bigfile.encrypt_bigfile
-
-.. autofunction:: rsa.bigfile.decrypt_bigfile
-
Classes
--------------------------------------------------
@@ -42,9 +41,22 @@
.. index:: VARBLOCK (file format)
-The VARBLOCK file format
+Module: rsa.bigfile
--------------------------------------------------
+The :py:mod:`rsa.bigfile` module contains functions for encrypting and
+decrypting files that are larger than the RSA key. See
+:ref:`bigfiles` for more information.
+
+.. autofunction:: rsa.bigfile.encrypt_bigfile
+
+.. autofunction:: rsa.bigfile.decrypt_bigfile
+
+.. _VARBLOCK:
+
+The VARBLOCK file format
+++++++++++++++++++++++++++++++++++++++++++++++++++
+
The VARBLOCK file format allows us to encrypt files that are larger
than the RSA key. The format is as follows; || denotes byte string
concatenation::
@@ -55,7 +67,7 @@
BLOCK := LENGTH || DATA
- LENGTH := varint-encoded length of the followng data, in bytes
+ LENGTH := varint-encoded length of the following data, in bytes
DATA := the data to store in the block
@@ -65,3 +77,16 @@
.. _Protobuf:
http://code.google.com/apis/protocolbuffers/docs/encoding.html#varints
+
+Module: rsa.core
+--------------------------------------------------
+
+At the core of the RSA encryption method lie these functions. They
+both operate on (arbitrarily long) integers only. They probably aren't
+of much use to you, but I wanted to document them anyway as they are
+the core of the entire library.
+
+.. autofunction:: rsa.core.encrypt_int
+
+.. autofunction:: rsa.core.decrypt_int
+