Log file path is configurable now. Fixed some bugs and added UTF-8 parameter to htmlentities()