Fixed stupid typos and slight math adjustments, added lazy mode functions

Signed-off-by: Richard Fox <richard.fox@ahref.co.uk>