added documentation to modules and tests