refator code and remove dependency

no longer need javassit and log4j library