add -h flag to ant run
mainLoop body
add MainProcessorTest class