added logging with slf4j
setup port as command line argument
javadoc
added simple test