Refactoring

- Renamed Consumer interfaces
- Added methods to get the type of the values from the consumers
- Removed trailing whitespaces