Added function documentation

And added a new way to load a log file.