Protected member variables. Fixed stringstream usage in getopt_long logic. Cleaned up unused functions