added automatic scaling
added scaling documentation