Adding GetOpt and building main server class