Remember settings

fixes #1