add proper command line args support. closes #5