czyszcze kod
added log4j
#266 progress
added validation