getNthLineFromBottom now works correctly. Fixed segmentation fault caused by unallocted histFile