made project maven compatible, included log4j and perf4j, main loop should be done