some formatting changes to doc strings; added tests to most of the modules