Rename variables/defines for clarity, add showError()