FF: Fix NameError if using TrialHandler with file

A NameError was raised because local function was called with module.

Found by pylint.
DOC: Fix typos in docstrings and source comments