Replaced 'getopt' module with 'argparse' module

Also, created a .gitignore file to make adding files and
commiting easier when unwanted files are littered around.