more (and better) logging
Improved app start log statement

- add os information
- switch to StringBuffer
add workaround for EPC instrument
Close some resource leaks
minor code cleaning