added support for other measurements. new logger class.