various fixes

- added usage()
- fixed logging