saves as correct file type

but forces download :( #230
determine doc viewer compat, add link

#218