Conditional compilation added (METER or MUC). Functions were renamed
according to their semantic.
Edited due to debugging needs.

Signed-off-by: Bleska <blecha.jiri@gmail.com>