fixes #24 flushes logs on launch, and added button to flush logs