issue #1,2,#3 version that works on csil

this is the finished version that works on csil, just type ant run in the directory will work.