added event for open button, changed comments and other small
corrections