GENERALVALUES analysis:
- cleaned up the code (removed debug messages and unneeded functions)