Added getopts for easier command line options
Added getopts for easier command line options