Adding getopt and usage()

ReviewedBy:
Removing unneeded variable.

ReviewedBy: