Implemented command-line arguments

TODO:
*implement file-type detection?
*write more.
*update documentation