Added - getopt (-p print, -d debug)
Added measuring time