Critical bug fixes, added error messages

- error messages were added to help troubleshooting problems
- removed obsolete code
- fixed a bug that prevented games from being updated