added documentation strings to all exported functions