Various fixes
- Fixed some problems with the preferences, where values and entries were swapped
- Fixed some problems with signing the release apk during the build process
- Commented the code in places where it is a bit unclear