add type option to specify content-type

closes #15