added opening files from command line

closed #12