Adding output directory to Git ignore list, adding handling of NaN on
input and fixing log file naming.