Get parameters from args; added print_usage()
Derivations, etc.
Added some comments