Added incremental parameter to text file loader

Also fixed str2bool