Cleaned deprecated variable access. Now the deprecation warnings should disappear.
added some info about sharding.