Added 'VERSION' command support. Renamed some constants for naming consistency.