Add and test -t | --type option, closes #16.