add documentation on logging with modules, add decorator for function logging