Added .gitignore file.
Fixed divide by zero bug when time range of data point was 0.