Update getopt.hpp

Add increment function, and little changes