adds opt parser and some comments