remove type casts, use const in more places possible, not sure if I will keep it this way or if it's a good idea, depends on the string table