Added save of data when app enters background.
Better handling of keyboard.
First stable implementation.