Command line options added and log function implemented.