added intro message, usage message and reading input parameters via getopt