Fix reading app id and key from input

- fix typo (this is not scala)
- add cache for entered data

fixes #6