All attributes of Layer are now private, deleted some unused.