basic key implementation
undo typing
some style
license and author
close mode prototype
fix bugs, more style
fix close mode