Split documentation in module level and reformatted to prefer reST format over epydoc in more places.