Added documentation and made some minor changes to the source.

Signed-off-by: Eric Dill <eddill@ncsu.edu>