- added assert
- fixed sformat string
- added function to setup logger