Added more templating to assignment functions.
More templating.
More templating.
Fixed homogenous part of inhomo error est.
Changed to correct summation for inohomo error.