- added retrieval of current username
- some minor formats
- added log messages