remove left-over variable
Make all unit checking methods aware of the unit_checking property
code formatting and documentation changes