added scaling option, expanded comments