- added documentation
- refactored log file