Cosmetic changes to the code and fix verbose output statements here and there.
Minor stylistic change to the code (use new lines for each command, especially clearing variables).
Return data as doubles instead of singles. This is particularly important for the time variable to prevent truncating the times.
Fix bug where if a 2D variable is requested after a 3D variable, the getVar indexing is wrong. Essentially by not clearing two variables at the start of each loop, the code crashed.