Basic opts parsing and initial config