adding slf4j API and cleaning up unused code