remove old unneccessary line
make title argument optional and add check for empty title in _get_filename