Improve keyboard handling
small refactorings
export to file
import/export now working