STYLE: various fixes
* use cout instead of cerr
* add exception
* remove non-applicable comment and todo