added lib
added key bindings
formatted