Added utf-8 support, added entrypoint, fixed variables