Add main Program and Local execution test

* Still facing problems with
java.lang.RuntimeException: java.lang.NoSuchMethodException: org.w3c.dom.Document.<init>()
probably doc can not be used as data type...