Parse input and output formats based on terminal

Closes #5.

Big thanks to @ErunamoJAZZ for implementation!
Bump version