Performance improvements?

Adjusted unit functions to hopefully improve performance.
Added $base-level parameter to grid-breakpoint :/...