added MIN() and MAX() macros
added formatter common functions module