updated documentation
begin refactoring function libraries into loadable modules