Changed some stuff

Use locals for speed, add types, fix string decoding again .-.