added documentation.  Rearranged libraries in anticipation of a CPAN release