Modified scaling functions and base scale

Allow for horizontal and vertical scaling by user for testing purposes.