Improved error checking
Take arguments from command line