added min/max/stddev statistics, improved getopt
added cflags for optimization
added for structure definitions