-- 07102013 - fixed a little
-- 08102013 - logging system
-- 08102013 - fixes in config reading