Added Log Scaling

and removed magic numbers (most).