Style: line splitting
Added key bindings. Fixed some memory leaks.