Added logging slf4j.
Added main method.