First review round

- fixed thread interrupts and timeouts
- added support for RAM options as well