cleaned up language files, added typecasting and stuff