Replaced some constants with enums or classes from the TWS client
library