Changed name of istream& argument to `is' from `os'.
test.cc takes filename as argument. This is checked for.
Corrected off by one error in zoom level calculation.
Moved template functions into class body to help the de-bugger.