Fixed bad filename

Was "sample_dataset.tigr " instead of "sample_dataset.tigr" (no trailing space)
Also made style more consistent
Fixed filename in test

Should be ">$o_file" and not "> $o_file"
Also did miscellaneous cleaning (tabs, parentheses)