adding build.xml
improving parse.. now it does not need to put two empty lines at the end of file